using System;
using System.Collections.Generic;
using System.Text;
using System.ComponentModel;

namespace SharpPopulatorLib
{

	public class ConfiguredField
    {

        #region Atributes

        private String _FieldName;
        //private System.Data.DbType _DataType;
        private Object _Configuration;
        private ConfigurationPropertiesType _Type;
        private Boolean _PrimaryKey;

        #endregion

        #region Properties

        [Category(""), Description("")]
        public String FieldName 
        {
            get
            { return _FieldName; }
            set
            { _FieldName = value; }
        }

        //public System.Data.DbType DataType
        //{
        //    get
        //    { return  }
        //}

        [Category(""), Description("")]
        public Object Configuration
        {
            get
            { return _Configuration; }
            set
            { _Configuration = value; }
        }

        [Category(""), Description("")]
        public ConfigurationPropertiesType Type
        {
            get
            { return _Type; }
            set
            { _Type = value; }
        }

        [Category(""), Description("")]
        public Boolean PrimaryKey
        {
            get { return _PrimaryKey; }
            set { _PrimaryKey = value; }
        }

        #endregion

        #region Constructors

        /// <summary>
        /// To create an instance of the class
        /// </summary>
        public ConfiguredField()
        { }

        /// <summary>
        /// To create an instance of the class
        /// </summary>
        /// <param name="FieldName"></param>
        /// <param name="Configuration"></param>
        /// <param name="Type"></param>
        public ConfiguredField(String FieldName, Object Configuration, ConfigurationPropertiesType Type, Boolean IsPrimaryKey)
        {
            //To create an instance of the class
            _FieldName = FieldName;
            _Configuration = Configuration;
            _Type = Type;
            _PrimaryKey = IsPrimaryKey;
        }

        #endregion

    }

}
